﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameBase;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace GalaxyPresident
{
    public class ScienceTower : OwnEntity
    {
        private static Texture2D texture = Constant.content.Load<Texture2D>(@"Resources/ScienceTower");
        private static Texture2D texture_s = Constant.content.Load<Texture2D>(@"Resources/ScienceTower_s");

        public override string getObjectName()
        {
            return "Science\nTower";
        }

        public ScienceTower(Planet planet)
            : base(planet)
        {
            sprite_s = new Sprite(texture_s, 1, 1,
                new List<int> { 0 }, 150);
            sprite = new Sprite(texture, 2, 2,
                new List<int> { 0,0,0,0, 1, 2, 3,3,3,3, 2, 1 }, 150);

            initSprites(planet);
        }

        protected override void initInfo()
        {
            meterialCost = 1500;
            moneyCost = 1200;
            energyCost = 300;

            _healthPoint = 2000;
            _defense = 0.2f;
        }

        public override string getInfoString()
        {
            return base.getInfoString()
                + "\nLevel   : " + (level + 1).ToString();
        }
    }
}
